<template>

<div>
    <span>姓名:{{ studentStore.name }}</span><br>
    <span>年龄:{{ studentStore.age }}</span><br>
    <span>年龄更改后：:{{ studentStore.ChangeAge }}</span><br>
    <span><input type="button" value="增加年龄" @click="studentStore.AddAge"></span><br>
</div>
<div>
        <span>默认数字:{{ memberStore.count }}</span><br/>
        <span>计算结果后:{{ memberStore.doubleCount }}</span><br/>
        <span><input type="button" value="增加之后的数字" @click="memberStore.AddCount"></span><br/>
  

    </div>

</template>
<script setup lang="ts">
import {useStudentStore,useMemberStore} from '../stores/index.ts'

const studentStore=useStudentStore();
const memberStore=useMemberStore();

</script>